import { cloud, default as request } from '@/framework/utils/request'

/**
 * @Description: 确认列表 /tMstSettle/page
 * @param data
 */
export function settlePage(data) {
  return request({
    url: `${cloud.mall}/tMstSettle/page`,
    method: 'get',
    params: data
  })
}

/**
 * @Description: 明细 /tMstSettleDetails/page
 * @param data
 */
export function settleDetailsPage(data) {
  return request({
    url: `${cloud.mall}/tMstSettleDetails/page`,
    method: 'get',
    params: data
  })
}

/**
 * @Description: 商品详细数据 /tModOrder/orderDetailByCode query传参
 * @param data
 */
export function orderDetailByCode(data) {
  return request({
    url: `${cloud.mall}/tModOrder/orderDetailByCode`,
    method: 'get',
    params: data
  })
}

/**
 * @Description: 修改 /tMstSettle/edit
 * @param data
 */
export function settleUpdate(data) {
  return request({
    url: `${cloud.mall}/tMstSettle/edit`,
    method: 'post',
    data
  })
}

/**
 * @Description: 对账明细  /tMstAccountRecord/page
 * @param data
 */
export function accountRecordPage(data) {
  return request({
    url: `${cloud.mall}/tMstAccountRecord/page`,
    method: 'get',
    params: data
  })
}

/**
 * @Description: 列表 /tModOrder/verifyAccount
 * @param data
 */
export function verifyAccount(data) {
  return request({
    url: `${cloud.mall}/tModOrder/verifyAccount`,
    method: 'get',
    params: data
  })
}

/**
 * @Description: 订单确认
 * @param data
 */
